package com.ruicar.afs.cloud.product.mq.send;


import com.alibaba.fastjson.JSONObject;
import com.ruicar.afs.cloud.common.mq.rabbit.anno.send.AfsRabbitMqClient;
import com.ruicar.afs.cloud.common.mq.rabbit.anno.send.AfsRabbitMqSender;
import com.ruicar.afs.cloud.product.mq.fallback.MqSystemFallBack;
import org.springframework.stereotype.Service;

/**
 * @author yaorui.zhang
 * @Description mq消息推送
 */
@AfsRabbitMqClient
public interface CommissionSystemSender {

    /**
     * 产品信息发送到佣金系统
     * @author yaorui.zhang
     * @param entity
     */
    @AfsRabbitMqSender(serverAlias = "${com.ruicar.afs.cloud.rabbitQueue.serverAliaAcs}"
            ,exchangeName = "${com.ruicar.afs.cloud.rabbitQueue.exchangeNameAcs}"
            ,queueName = "${com.ruicar.afs.cloud.rabbitQueue.queueNameAcs.yjdpWaibaoAsyncAlterDealer}"
            ,enableOn = "${com.ruicar.afs.cloud.rabbitQueue.exchangeNameAcs}"
            ,fallBack = MqSystemFallBack.class
            ,afsMessage=false)
    void sendAlterDealer(String entity);
}
